package core
{

	public class MapElement extends MapRes
	{
		/**
		 * 2点移动所需要的时间
		 */
		public var move_time : int = 0;
		/**
		 * 2点停留时间
		 */
		public var stay_time : int = 0;

		public var start_row : int = 0;
		public var start_col : int = 0;

		public var target_row : int = 0;
		public var target_col : int = 0;

		/**
		 * 类型
		 * 1单向移动
		 * 2双向移动
		 * 3瀑布
		 */
		public var type : int = 0;


		public function MapElement()
		{
		}

		public function toServerString() : String
		{
			return "{" + type + "," + move_time + "," + stay_time + "," + start_col + "," + start_row + "," + target_col + "," + target_row + "}";
		}
	}
}